package ex05;

import java.util.Comparator;

public class Employee2Comparator implements Comparator<Employee2>{
	public int compare(Employee2 emp1,Employee2 emp2){
		if(emp1.equals(emp2)){
			return 0;
		}
		else if(emp1.getBirthday().compareTo(emp2.getBirthday())==1){
			return 1;
		}
		else{
			return -1;
		}
	}
}
